<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<form action="<%=basePath %>backend/updateuser" class='form-horizontal' method="post" id='teacherForm' enctype="multipart/form-data">

	<div style="padding: 20px;">
		<div class="row" style='margin-top: 10px;'>
			<div class="row div-common" style='margin-top: 10px;'>
				<div class="span5 input-prepend">
					<span class="add-on">日志名称：</span> <input class="  input-medium"
						name="logName" type="text" value='${user.logName }'/>
				</div>
				<div class="span5 input-prepend">
					<span class="add-on">真是名称：</span> <input class=" " name="realName"
						type="text" value='${user.realName }' />

				</div>


				<!-- Optional: clear the XS cols if their content doesn't match in height -->
				<div class="clearfix visible-xs"></div>

			</div>
			<div class='row div-common' style='margin-top: 10px;'>
				
				<div class=" span5 input-prepend">
					<span class="add-on">类型：</span> <select class="form-control"
						id='ptype' name='type'>
						<option value="ca">普通管理员</option>
						<option value='sa'>超级管理员</option>
						
						
					</select>
				</div>
			</div>
			<div class='row div-common' style='margin-top: 10px;'>
				<div class="span5 input-prepend">
					<span class="add-on">密码：</span> <input name="pwd"
						type="text" value='${user.pwd }'/>
				</div>
				

			</div>
			<input type="hidden" id='type' value="${user.type }">
			<input type="submit" value="完成"
				style="margin-left: 500px; margin-top: 10px;" class="btn btn-info"
				onclick="return getContent();" />
		</div>
	</div>
</form>
<script type="text/javascript">
	   $(function(){
		   var type = $("#type").val();
	
		    $("#ptype").val(type); 
	   });
		function getContent() {
			return true;
		}
	</script>